package com.surelution.lansao

class MenuController {

    def index = {
		String serverName = request.getServerName()
		println serverName
		def partner = Partner.findByDomainName(serverName)
		if(partner) {
			def items = Item.findAllByPartner(partner)
			
			render(view: "/customerMenu/index", model:[itemInstanceList: items])
		} else {
			render("系统错误，请联系管理员")
		}
	}
}
